﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Science.Mathematics.Algebra;

namespace ScienceApplication
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            Term t1 = new Term("3");
            Term t2 = new Term("-3");
            Term t3 = new Term("-3x");
            Term t4 = new Term("-3x^3");
            Term t5 = new Term("-3xy^3");
            Term t9 = new Term("x");
            Term t6 = new Term("-3xy^3z");
            Term t7 = new Term("-3xy^3zw^7");
            Term t8 = new Term("xyzw");

            Term t10 = t4 * 5;

            Dictionary<String, double> values = new Dictionary<string,double>();
            values.Add("x", 2);
            values.Add("y", 1);
            values.Add("z", 2);
            values.Add("w", 1);
            Term r = t7.Eval(values);
        }
    }
}
